var util = require('../utils/util.js');
var api = require('../config/api.js');
/**
 * 获取提货点
 * @param {} data
 */
async function _saveAddress(id) {
    try{
        // 获取初始数据
        const _this = this;
        const result = await util.request(api.saveAddress, {
            id
        }, "POST")
        return Promise.resolve(result.result);
    }catch(e){
        wx.showToast({
            title: e.message,
            icon: "none",
        });
        return Promise.reject(e.message);
    }
}

module.exports = {
    _saveAddress
}